package com.example.wan1.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.wan1.R;
import com.example.wan1.model.ArticleBean;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/***
 * 创建时间：2020/7/26 14:10
 * 创建人：10850
 * 功能描述：
 */
public class ShareAdapter extends BaseQuickAdapter<ArticleBean, BaseViewHolder> {

    public ShareAdapter(int layoutResId, @Nullable List<ArticleBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, ArticleBean articleBean) {
        holder.setText(R.id.share_tv_title, articleBean.getTitle())
                .setText(R.id.share_tv_time, articleBean.getNiceShareDate())
                .addOnClickListener(R.id.share_iv_del);
    }
}
